package com.ruoyi.service;

import com.ruoyi.entity.po.TPlayer;

import javax.validation.constraints.NotBlank;
import java.util.List;

/**
 * @author chenhainan
 * @since 2024-12-08 17:23
 */
public interface IPlayerService extends IPlayerStatisticsService {

    boolean addPlayer(TPlayer player);

    boolean updatePlayer(TPlayer player);

    boolean deletePlayerById(Integer id);

    List<TPlayer> selectPlayerList(TPlayer tPlayer);

    int deleteTActivitySwitchByIds(String ids);

    int eliminatePlayer(Integer playerId);

    void updateCustomizeValue(String name, Double customizeValue);

    TPlayer selectByName(String playerName);

    TPlayer selectByPhoneNum(@NotBlank(message = "用户名不能为空") String phoneNum);
}
